@extends('layouts.admin')
@section('title', '用户添加')
@section('content')
    <div class="result_wrap">
        <form method="post" action="{{url('admin/user/insert')}}" enctype="multipart/form-data">
            {{csrf_field()}}
            @if (count($errors) > 0)
                <div class="mark" style="background: #6f1919;padding: 10px 10px;color: #fff; width: 600px;border-radius: 10px;margin-left: 60px;">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <p>{{ $error }}</p>
                        @endforeach
                    </ul>
                </div>
            @endif
            <table class="add_tab">
                <tbody>
                <tr>
                    <th width="120"><i class="require">*</i>用户名：</th>
                    <td>
                        <input type="text" name="username" value="{{old('username')}}"> </i>请输入用户名</span>
                    </td>
                </tr>
                <tr>
                    <th><i class="require">*</i>邮箱：</th>
                    <td>
                        <input type="text" name="email" value="{{old('email')}}"> </i>请输入邮箱</span>
                    </td>
                </tr>
                <tr>
                    <th><i class="require">*</i>密码：</th>
                    <td>
                        <input type="password" name="passworld"> </i>请输入密码</span>
                    </td>
                </tr>
                <tr>
                    <th><i class="require">*</i>确认密码：</th>
                    <td>
                        <input type="password" name="repassworld"> </i>再次输入密码</span>
                    </td>
                </tr>
                <tr>
                    <th><i class="require">*</i>头像：</th>
                    <td>
                        <input type="file" name="profile"> </i></span>
                    </td>
                </tr>
                <tr>
                    <th><i class="require">*</i>个人介绍：</th>
                    <td>
                        <textarea name="intro" id="" cols="30" rows="10"></textarea>
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <input type="submit" value="提交">
                        <input type="button" class="back" onclick="history.go(-1)" value="返回">
                    </td>
                </tr>
                </tbody>

            </table>

        </form>

    </div>
@endsection




